// Author	: damphat@gmail.com
// Created	: 01/12/2008

#pragma once
#include "vn/NetCommon.h"
#include "vn/SocketAddress.h"


NET_BEGIN

// Abstract class of endpoint classes use for store address information
class EndPoint {
public:
	//virtual		void			Create(const SocketAddress &address) = 0;
	//virtual		SocketAddress	Serialize()			const	= 0;
	
	virtual	short	GetAddressFamily()	const	= 0;
	virtual LPCChar	GetData()			const	= 0;
	virtual	LPChar	GetData()					= 0;
	virtual	int		GetLength()			const	= 0;

public:
	virtual			~EndPoint()			{ }
};

NET_END
